var mongoose = require('mongoose');
var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/baibuwechat');

var Schema = mongoose.Schema;

var userSchema = new Schema({
	userid: String,
	openid: String,
	unionid: String,
	longitude: Number,
	latitude: Number
});

exports.User = mongoose.model('users', userSchema);
